package com.dnxh.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dnxh.entity.BasicInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhiqiu
 * @since 2022 -04-06
 */
@Mapper
public interface BasicInfoMapper extends BaseMapper<BasicInfo> {
	
	/**
	 * 查询信息
	 *
	 * @param page       the page
	 * @param name       the name
	 * @param qq         the qq
	 * @param phone      the phone
	 * @param department the department
	 * @return the list
	 */
	List<BasicInfo> searchInfoByCondition (IPage page,
	                                       @Param ("name") String name,
	                                       @Param ("qq") String qq,
	                                       @Param ("phone") String phone,
	                                       @Param ("department") Long department);
	
	/**
	 * Search i nfo by grade list.
	 *
	 * @param grades the grades
	 * @return the list
	 */
	List<BasicInfo> searchInfoByGrade (List<String> grades);
	
	/**
	 * Search info by department list.
	 *
	 * @param departments the departments
	 * @return the list
	 */
	List<BasicInfo> searchInfoByDepartment(List<String> departments);
	
}
